package com.hnichr.ping.common.controller;

import com.hnichr.ping.common.service.SendService;
import com.hnichr.ping.common.vo.SendResultVo;
import com.hnichr.ping.common.vo.SmsSendVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/send/v1/")
public class SendController {
    @Autowired
    private SendService sendService;

    @PostMapping("sendSms")
    public SendResultVo sendSms(@RequestBody SmsSendVo smsSendVo){
        return sendService.sendSms(smsSendVo);
    }
}
